package com.bailiban.service.impl;

import com.bailiban.entity.Account;
import com.bailiban.mapper.AccountMapper;
import com.bailiban.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountMapper accountMapper;
    @Override
    public Account queryById(Integer id) {
        System.out.println("查询成功");
        return accountMapper.queryById(id);
    }
}
